﻿#ifndef SEARCHENTRY_H
#define SEARCHENTRY_H

#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QHBoxLayout>

class SearchEntry : public QLineEdit
{
    Q_OBJECT
public:
    explicit SearchEntry(QWidget *parent = nullptr);

private slots:
    void onBtnClicked() { emit sendSearchStr(this->text()); }

signals:
    void sendSearchStr(const QString &);

private:
    QPushButton *m_btnSearch;

};

#endif // SEARCHENTRY_H
